﻿using System.Runtime.InteropServices;
using System;
using System.Windows;
using System.Windows.Interop;

namespace SessionEndDemo
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Loaded += MainWindow_Loaded;
        }
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Loaded -= MainWindow_Loaded;
            //如果启动后需要立即隐藏窗口，请放在Loaded之后
            Hide();
        }
    }
}
